package com.xiguanlezz.cn.api.remote.request;

import com.xiguanlezz.cn.api.naming.pojo.ServiceInfo;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * @Author：习惯了种种
 * @CreateDate：2024/11/28 11:24
 * @Description：服务端通知客户端服务实例信息变更请求
 */
@NoArgsConstructor
@Setter
@Getter
public class NotifySubscriberRequest extends ServerRequest{
    private String namespace;
    private String serviceName;
    private String groupName;
    private ServiceInfo serviceInfo;

    private NotifySubscriberRequest(ServiceInfo serviceInfo) {
        this.serviceInfo = serviceInfo;
    }

    public static NotifySubscriberRequest buildNotifySubscriberRequest(ServiceInfo serviceInfo) {
        return new NotifySubscriberRequest(serviceInfo);
    }
}
